从 <b>{{ $paginator->firstItem() }}</b> 到 <b>{{ $paginator->lastItem() }}</b> ，总共 <b>{{ $paginator->total() }}</b> 条
<ul class="pagination pagination-sm no-margin pull-right">
    <!-- Previous Page Link -->
    @if ($paginator->onFirstPage())
        <li class="page-item disabled"><span class="page-link">&laquo;</span></li>
    @else
        <li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev">&laquo;</a></li>
    @endif

<!-- Pagination Elements -->
    @foreach ($elements as $element)
    <!-- "Three Dots" Separator -->
        @if (is_string($element))
            <li class="page-item disabled"><span class="page-link">{{ $element }}</span></li>
        @endif

    <!-- Array Of Links -->
        @if (is_array($element))
            @foreach ($element as $page => $url)
                @if ($page == $paginator->currentPage())
                    <li class="page-item active"><span class="page-link">{{ $page }}</span></li>
                @else
                    <li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
                @endif
            @endforeach
        @endif
    @endforeach

<!-- Next Page Link -->
    @if ($paginator->hasMorePages())
        <li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next">&raquo;</a></li>
    @else
        <li class="page-item disabled"><span class="page-link">&raquo;</span></li>
    @endif
</ul>
<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
    <small>显示</small>&nbsp;
    @php
        $perPage = (int) app('request')->input('per_page',10);
    @endphp
    <select class="input-sm grid-per-pager" name="per-page">
        @foreach ([5,10,20,30,50,100] as $option)
            @if ($perPage == $option)
                <option value="{{ app('request')->fullUrlWithQuery(['per_page' => $option]) }}" selected>{{ $option }}</option>
            @else
                <option value="{{ app('request')->fullUrlWithQuery(['per_page' => $option]) }}">{{ $option }}</option>
            @endif
        @endforeach
    </select>
    &nbsp;<small>条</small>
</label>
<script language="JavaScript" type="text/javascript">
    $(function () {
        $('.grid-per-pager').on("change", function(e) {
            $.pjax({url: this.value, container: '#pjax-container'});
        });
    });
</script>
